import java.util.Random;
public class Function {
	int a;
	int b;
	char op;
	int res;
	Random rd =new Random();
	void set()
	{
		a=rd.nextInt(101);
		boolean flag=rd.nextBoolean();
		if(flag){
			op='+';
			b=rd.nextInt(101-a);
			res=a+b;
		}else{
			op='-';
			b=rd.nextInt(b+1);
			res=a-b;
		}
	}
	void print()
	{
		System.out.println("-----------------------------------------------------------------------------------------");
		for(int i=1;i<=50;i++)
		{
			set();
			System.out.printf("%3d %c %3d = %3d    ",a,op,b,res);
			if(i%5==0)System.out.println("\n-----------------------------------------------------------------------------------------");
		}
	}
}
